/**
 *  消息模块 api
 *  @module api/message
 */
import axios from '@/utils/axios.js'
/**
 * 消息列表
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const pageMessage = (data) => axios({
	method: 'get',
	data: data,
	url: '/messageRemind/webRecord/page'
})
/**
 * 消息已读
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const readMessage = (data) => axios({
	method: 'post',
	data: data,
	url: '/messageRemind/webRecord/read'
})
/**
 * 消息总数
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const allMessageNum = (data) => axios({
	method: 'get',
	data: data,
	url: '/messageRemind/webRecord/notReadNum'
})
/**
 * 消息列表
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getMesData = (data) => axios({
	method: 'get',
	data: data,
	url: '/messageRemind/webRecord/getMesData'
})
/**
 * 消息类型
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getMesType = (data) => axios({
	method: 'get',
	data: data,
	url: '/messageRemind/webRecord/getAllAppMesType'
})
/**
 * 消息推送信息
 * @param {object} [data] 发送键值对数据
 * @returns {promise}
 */
export const getMonthAllAppMes = (data) => axios({
	method: 'get',
	data: data,
	url: '/messageRemind/webRecord/getMonthAllAppMes'
})